eFAWATEERcom BANK API icon

eFAWATEERcom BANK API

(0 reviews)

Postpaid Bill Inquiry

URLs :

Description : This service allows the channel to make inquiries on customer Bill and return the payment information.

Channels that want to know detailed information about a bill will pass the bill inquiry request to the mule service, mule service will in turn call the eFAWATEERcom endpoint, get the bill inquiry response and give that back to the channel. In between the request or response will not be stored in any layers within the mule. With this bill-inquiry endpoint channels can also fetch bill payment history and paid bills. eFAWATEERcom does not allow bulks for bill inquiry request.

Mulesoft Request:

Mandatory Headers: x-channel-id,x-client-trace-id, x-bank-id,client_id, client_secret

Optional Headers: x-sub-channel-id, x-user-id, Authorization, x-debug-flag, x-customer-id

Request Body: application/json

Field NameTypeLengthOccurrenceDescription
billInquiryObjectM
acctInfoObjectM
billingNostring50M
billnostring50O
billerCodeInteger3MRepresents the unique code of the Biller
End of AcctInfo
serviceTypestring25M
payerInfoObjectM
idTypestring3C
idstring20C
nationEnum, char2CEnum : JO Jordanian IQ Iraq GB British KW Kuwait
namestring20O
phonestring20O
addressstring100O
emailstring100O
joebppsNoInteger10C
End of 'payerInfo'
dateRangeObjectO
startDtDateTimeM
endDtDateTimeM
End of ' dateRange '
incPaymentsBooleanODetermines whether payment history is to be included in the inquiry response
incPaidBillsBooleanODetermines whether paid bills are to be included in the inquiry response
End of ' billInquiry '

Request Sample with Mandatory Elements:

{
"billInquiry": {
"acctInfo": {
"billingNo": "198111",
"billerCode": 39
},
"serviceType": "Electricity",
"payerInfo": {
"joebppsNo": 7045
}
}
}

Request Sample for fetching payments History

{
 "billInquiry": {
   "acctInfo": {
     "billingNo": "198111",
     "billerCode": 39
   },
   "serviceType": "Electricity",
   "payerInfo": {
     "joebppsNo": 7045
   },
   "incPayments": true
 }
}

Request Sample for fetching paid bills:

{
 "billInquiry": {
   "acctInfo": {
     "billingNo": "198111",
     "billerCode": 39
   },
   "serviceType": "Electricity",
   "payerInfo": {
     "joebppsNo": 7045
   },
   "incPaidBills": true
 }
}

Mulesoft Response:

Success Response: (200)

Response Body: application/json

Field NameTypeLengthOccurrenceDescriptionValidation
statusObjectM
successBooleanMtrue false
codeString10MError Code“0” incase of success or Error Code
reasonCodeString50OError Type or Error categoryAdd this tag only incase of error
arabicMessageString200MEnglish message translated to Arabicتمت العملية بنجاح in case of success or arabic translated error in case of known errors
englishMessageString200MDescription about the processing“The Operation has been Successfully Completed” Or error Description
End of status
responseObjectOExists if success = true
billInquiryObjectM
inqRefNoInteger20O
recCountIntegerM
billsRecObjectCMandatory : if RecCount > 0
billRecArrayMRepeatable
resultObjectO
errorCodeInteger5M
errorDescString20M
severityString10M
End of result
acctInfoObjectM
billingNoInteger50M
billnostring50M
billerCodestring3O
End of acctInfo
billStatusEnum, String20MEnum: BillNew, BillUpdated, BillPaid BillPartiallyPaid or BillOverPaid
dueAmountDecimal12,3M
feesAmtDecimal12,3M
issueDateDateTimeM
openDateDateTimeO
dueDateDateTimeM
expiryDateDateTimeO
closeDateDateTimeO
serviceTypestring25M
billTypestring13OEnum: Recurring OneOff
pmtConstObjectO
allowPartBooleanMThe value in this element ‘false’ or ‘true’
lowerDecimal12,3M
upperDecimal12,3M
End of pmtConst
billPmtsObjectO
billPmtArrayMRepeatable
joebppsTrxInteger20M
bankCodeInteger3M
dueAmountDecimal12,3M
paidAmtDecimal12,3M
pmtStatusString15M
processDateDateTimeM
End of 'billPmt'
End of 'billPmts'
End of 'billRec'
End of 'billsRec'
End of 'billInquiry'
End of ‘ response ‘
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"billInquiry": {
"recCount": 2,
"billsRec": {
"billRec": [
{
"result": {
"errorCode": 0,
"errorDesc": "Success",
"severity": "Info"
},
"acctInfo": {
"billingNo": 198111,
"billNo": 198111,
"billerCode": 39
},
"billStatus": "BillNew",
"dueAmount": 8,
"feesAmt": 0,
"issueDate": 20220216,
"dueDate": 20220216,
"serviceType": "Electricity",
"pmtConst": {
"allowPart": true,
"lower": 1,
"upper": 100
}
},
{
"result": {
"errorCode": 0,
"errorDesc": "Success",
"severity": "Info"
},
"acctInfo": {
"billingNo": 198111,
"billNo": 198111,
"billerCode": 39
},
"billStatus": "BillNew",
"dueAmount": 8,
"feesAmt": 0,
"issueDate": 20220216,
"dueDate": 20220216,
"serviceType": "Electricity",
"pmtConst": {
"allowPart": true,
"lower": 1,
"upper": 100
}
}
]
}
}
}
}

Sample Error Response:

Error codes :

400:

content-type: JSON

{
"success": false,
"code": "400",
"reasonCode": "Bad Request",
"arabicMessage": "اقتراح غير جي",
"englishMessage": "UnrecognizedServiceType"
}

Reviews